package cool.mtc.minghe.service.mapper.sys.role;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cool.mtc.minghe.data.entity.sys.role.RoleDO;
import cool.mtc.minghe.data.model.base.Dict;
import cool.mtc.minghe.data.model.sys.role.dto.RoleDTO;
import cool.mtc.minghe.data.model.sys.role.dto.RoleListDTO;
import cool.mtc.minghe.data.model.sys.role.query.RoleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 明河
 */
public interface RoleMapper extends BaseMapper<RoleDO> {

    Page<RoleListDTO> pageList(@Param("page") Page<RoleListDTO> page, @Param("query") RoleQuery query);

    RoleDTO getById(@Param("id") Long id);

    List<Dict> listDict();
}
